package com.ruoyi.iot.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.Instant;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "粉尘监测仪器采样数据查询返回响应实体类")
public class DustVO {

    @ApiModelProperty("自增主键")
    private Integer id;

    @ApiModelProperty("传感器设备编号: 传感器ID")
    private String sensorId;

    @ApiModelProperty("数据采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Instant dataTime;

    @ApiModelProperty("设备状态; normal:正常,alarming:报警,preAlarming:预警,offline:离线")
    private String equipmentStatus;

    @ApiModelProperty("风力")
    private Double windPower;

    @ApiModelProperty("风速")
    private Double windSpeed;

    @ApiModelProperty("风向")
    private String windDirection;

    @ApiModelProperty("温度")
    private Double temperature;

    @ApiModelProperty("湿度")
    private Double humidity;

    @ApiModelProperty("大气压强")
    private Double atmos;

    @ApiModelProperty("光照强度")
    private Double illumination;

    @ApiModelProperty("PM10")
    private Double pm10;

    @ApiModelProperty("PM2.5")
    private Double pm25;

    @ApiModelProperty("TSP")
    private Double tsp;
}
